﻿
namespace HobSoft.SoccerBet2014.Domain.Common.SiteContext
{
    using sm = Domain.Models.Site;
    public abstract class ContextBase
    {
        public ContextBase(sm.SiteContext persistent)
        {
            Persistent = persistent;
            Persistent.OnRecoverContextValue += Persistent_OnRecoverContextValue;
        }

        protected abstract void Persistent_OnRecoverContextValue(string ctxValue);

        protected sm.SiteContext Persistent { get; set; }
    }
}
